﻿@model CobraCms.AdminConsole.Models.Content.CreateNodeModel
           
@{
    ViewBag.Title = "Node";
    Layout = "~/Views/Shared/_WorkspaceLayout.cshtml";
}
<div id="content-editor-container">
    <h2>Create Node Under: @Model.ParentNodeId</h2>

    @using (Html.BeginForm("CreateNode", "Content", new {nodeId=Model.ParentNodeId}, FormMethod.Post, new { id="content-editor-form"}))
    {
        @Html.HiddenFor(p => p.ParentNodeId);
        @Html.LabelFor(p => p.Name)
        @Html.TextBoxFor(p => p.Name)

        if (Model.Succeeded)
         {
             <div><span>Post Success!</span></div>     
         }
        
    
            <div class="action-toolbar">    
                <input type="submit" value="Create" />
            </div>
    }
</div>